import mock from 'mockjs'
import example from './example'
import movie from './movie'
import menu from './menu'
import roomMovie from './room-movie'
import room from './room'

mock.setup({ timeout: '100-200' })

let obj = [
   ...example,
   ...movie,
   ...menu,
   ...roomMovie,
   ...room,
]

obj.forEach(item => {
    mock.mock(item.url, item.method, item.data);
})

export default mock